/**
 * @Description  : 
 * @FilePath     : /ns_library/drivers/i2c/i2cbus_gpio.h
 * @Author       : xiongjinqi
 * @Date         : 2024-11-28 21:24:33
 * @Version      : 0.0.1
 * @LastEditors  : xiongjinqi
 * @LastEditTime : 2024-12-08 21:12:50
 * @Copyright    : Copyright (c) 2024 by XJQ, All Rights Reserved. 
**/

#ifndef __I2C_GPIO_H_
#define __I2C_GPIO_H_

#include "sys.h"
#include "i2c/i2c_core.h"

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

struct i2c_gpio_data* i2c_gpio_init(const char* sclpin, 
                                        const char *sdapin,
                                        struct i2c_adap_config *config);

void ns_drv_i2cgpio_register(const char* cname, 
                                        struct i2c_client* client, 
                                        struct i2c_gpio_data *i2cbus);

void ns_drv_i2cgpio_unregister(const char* cname, 
                                        bool del_adap);

#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __I2C_GPIO_H_ */

